<?php
/**
 * @package		简易CMS
 * @subpackage	系统前台接口
 * @version		$Id: index.php 11 2012-06-07 16:49:28Z htmambo@gmail.com $
 * @author		Hoping
 * @copyright	Copyright (C) 2010 Hoping Software Studio.
 */

require 'source/class/class_core.php';
$mainframe = & cmsCore::instance();
$oarray = array('portal', 'member', 'misc', 'comment', 'portalcp', 'focus', 'spider', 'diy', 'block');
$option = !in_array($mainframe->var['option'], $oarray) ? 'portal':$mainframe->var['option'];
require libfile('class/application');
require libfile('option/'.$option);
$_G['basescript'] = $option;
$classname = $option.'_ctrl';
$control = new $classname();
$control->run();
